#include <stdio.h>

int addSum(int top) {
    int ret = 0;
    int i = 1;
    for(; i <= top; ++i) {
        ret += i;
    }
    return ret;
}

int main() {
    printf("开始调试:\n");
    int sum = addSum(100);
    printf("sum = %d\n", sum);
    printf("结束调试\n");
    return 0;
}
